﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EventDemo.Evnets
{
    public interface IEventData
    {
        /// <summary >
        /// 事件发生的时间
        /// </summary >
        DateTime EventTime { get; set; }

        /// <summary >
        /// 触发事件的对象
        /// </summary >
        object EventSource { get; set; }

    }


    public class EventData: IEventData
    {
        /// <summary >
        /// 事件发生的时间
        /// </summary >
        public DateTime EventTime { get; set; }

        /// <summary >
        /// 触发事件的对象
        /// </summary >
        public object EventSource { get; set; }

        public EventData()
        {
            EventTime = DateTime.Now;
        }
    }

}
